	app.controller("detailsCtrl",["$scope","$routeParams","$route","ajaxjsonp",function($scope,$routeParams,$route,ajaxjsonp){		
			$scope.loading = true;
			ajaxjsonp.jsonp({
				  	url : 'http://api.douban.com/v2/movie/subject/'+$routeParams.id,
			        jsonp : 'callback',
			        success:function(data){
			        	$scope.detail = data;
			    
			        	$scope.loading = false;
			        	$scope.$apply();
			        	
			        }
			})		
	}])